package TraitementMessages;

import mainProcess.MainProcessing;
import com.lo23.data.objinterface.*;

/**
 * @class UserDisconnectedMessage
 * @author Vincent PALANCHER
 */
public class UserDisconnectedMessage extends ConnectionMessage {
	
	static final long serialVersionUID = 23201023L;

    public UserDisconnectedMessage (String senderUID) {
        super(senderUID);
    }

    public void handleReceiption(MainProcessing mainProcessing)
    {
        User distUser = mainProcessing.getUserWithUID(senderUID);
        mainProcessing.removeOnlineUser(distUser);
    }
}
